package com.jerkin.consumer.start;

import com.jerkin.consumer.proxy.RpcConsumerProxy;
import com.jerkin.facade.UserFacade;
import com.jerkin.model.User;

/**
 * @version V1.0
 * @ClassName: TestRpc
 * @Description:
 * @author: huhongzhi
 * @date: 2021/6/20 23:30
 */
public class TestRpc {

    public static void main(String[] args) {
        User user = new User();
        user.setRemark("消费者测试");
        user.setAge(10);
        user.setName("消费者请求");
        Object[] params = {user};
        UserFacade userFacade = (UserFacade) RpcConsumerProxy.createProxy(UserFacade.class);
        userFacade.sendUser(user);
    }
}
